package controllers.admin.permission;

import controllers.admin.secure.Security;
import controllers.deadbolt.Deadbolt;
import controllers.modules.cas.SecureCAS;
import models.permission.User;
import play.mvc.Controller;
import play.mvc.Util;
import play.mvc.With;

/**
 * Created by FireFire on 3/20 0020.
 * 权限过滤Controller
 */
@With({SecureCAS.class,Deadbolt.class})
public class AuthorityController extends Controller{
    /**
     * 获取当前用户
     * @return
     */
    @Util
    public static User currentUser(){
        return Security.currentUser();
    }

}
